package com.pig.pojo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;
import java.util.Date;

/**
 * pojo基类，完成2个任务，2个日期，实现序列化
 */
public class BasePojo implements Serializable{
	@TableField(fill = FieldFill.INSERT)
	private Date createdTime;
	@TableField(fill = FieldFill.INSERT_UPDATE)
	private Date modifiedTime;

	public BasePojo() {
	}

	public BasePojo(Date createdTime, Date modifiedTime) {
		this.createdTime = createdTime;
		this.modifiedTime = modifiedTime;
	}

	public Date getCreatedTime() {
		return createdTime;
	}

	public void setCreatedTime(Date createdTime) {
		this.createdTime = createdTime;
	}

	public Date getModifiedTime() {
		return modifiedTime;
	}

	public void setModifiedTime(Date modifiedTime) {
		this.modifiedTime = modifiedTime;
	}


}
